package com.gzucm.Scholarship.util;

import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;

public class MD5Util {

    private static final String KEY = "gzucm_";

    public static String MD5(String text) {
        return DigestUtils.md5DigestAsHex((KEY + text).getBytes(StandardCharsets.UTF_8));
    }

}
